const presets = [
  ['@babel/env', {
    corejs: '3.29',
    useBuiltIns: 'usage'
  }],
  ['@babel/preset-typescript'],
  ['@vue/babel-preset-jsx', { compositionAPI: true }]
];

const plugins = [
  '@babel/plugin-syntax-dynamic-import',
  '@babel/plugin-proposal-object-rest-spread',
  '@babel/plugin-transform-runtime',
  '@babel/plugin-syntax-jsx',
  'transform-vue-jsx',
  '@babel/plugin-proposal-optional-chaining',
  'transform-remove-debugger',  
  'lodash', 
  ['@babel/plugin-proposal-decorators', {'legacy': true }],
  ['@babel/plugin-proposal-class-properties', { 'loose': true }],
  ['@babel/plugin-proposal-private-methods', {'loose': true}],
  ['@babel/plugin-proposal-private-property-in-object', {'loose': true}]
]

const ignore = []
if(process.env.NODE_ENV !== 'development') {
  ignore.push('./src/util/tracker/tracker.js')
}

module.exports = { presets, plugins, ignore };
